﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AutomaticPush.Models.DaZhang
{

    class DZParamDto : DZParam
    {

    } 
    /// <summary>
    /// 参数
    /// </summary>
    public class DZParam
    {
        /// <summary>
        /// 应用id
        /// </summary>
        public string appId { get; set; }
        /// <summary>
        /// 接口版本号，固定：1.0
        /// </summary>
        public string version { get; set; }
        /// <summary>
        /// 签名值
        /// </summary>
        public string sign { get; set; }
        /// <summary>
        /// 签名类型，目前只支持MD5方式
        /// </summary>
        public string signType { get; set; }

        /// <summary>
        /// 请求接口时间,13位时间戳
        /// </summary>
        public string reqTime { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        public string customNo { get; set; }

    }

    /// <summary>
    /// 大张商品验收单信息
    /// </summary>
    public class DZReceiveParam
    {
        public string deliveryNo { set; get; }
        public List<DZReceiveItemDto> receiveItem { set; get; }
    }

    /// <summary>
    /// 大张商品验收信息
    /// </summary>
    public class DZReceiveItemDto
    {
        public string goodsCode { set; get; }
        public string barCode { set; get; }
        public string receiveNum { set; get; }
        public DateTime? receiveDate { set; get; }
    }


    /// <summary>
    /// (大张)数据库查询验收单Model
    /// </summary>
    public class DZReceiveItem
    {

        public string goodsCode { set; get; }
        public string barCode { set; get; }
        public string receiveNum { set; get; }
        public DateTime? receiveDate { set; get; }
        public string deliveryNo { set; get; }
        public string orderNo { set; get; }
        public string id { set; get; }
    }

    //orderNo, deliveryNo, goodsCode, barCode, receiveNum, receiveDate, id

    /// <summary>
    /// 订单信息
    /// </summary>
    public class DZOrderModel
    {
        /// <summary>
        /// 订单信息
        /// </summary>
        public DZOrderModel()
        {
            orderItem = new List<DZorderItem>();
        }
        /// <summary>
        /// 订单号
        /// </summary>
        public string orderNo { get; set; }
        /// <summary>
        /// 门店编码
        /// </summary>
        public string shopNo { get; set; }
        /// <summary>
        /// 订单类型，目前固定值Z001
        /// </summary>
        public string orderType { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        public string orderAddress { get; set; }
        /// <summary>
        /// 收货联系人
        /// </summary>
        public string contactPerson { get; set; }
        /// <summary>
        /// 收货联系电话
        /// </summary>
        public string contactPhone { get; set; }
        /// <summary>
        /// 订单日期：格式 yyyy-mm-dd
        /// </summary>
        public string orderDate { get; set; }

        /// <summary>
        /// 到店日期：计划发货日期，如果为空则取订单日期
        /// </summary>
        public string deliveryDate { get; set; }

        /// <summary>
        /// 订单备注
        /// </summary>
        public string orderTitle { get; set; }


        /// <summary>
        /// 订单信息
        /// </summary>
        public List<DZorderItem> orderItem { get; set; }
    }

    /// <summary>
    /// 商品信息
    /// </summary>
    public class DZorderItem
    {
        /// <summary>
        /// 商品编码
        /// </summary>
        public string goodsCode { set; get; }

        /// <summary>
        /// 商品条码
        /// </summary>
        public string barCode { set; get; }
        /// <summary>
        /// 数量
        /// </summary>
        public string num { set; get; }
        /// <summary>
        /// 单位
        /// </summary>
        public string unit { set; get; }

    }
}
